/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.student.tp3assignment2.encapsulation.Impl;

import com.student.tp3assignment2.encapsulation.Person;

/**
 *
 * @author Student
 */
public class PersonImpl implements Person {
    String iD;
    String firstName;
    String lastName;
    String gender;
    String dateOfBirth;

    public void SetPersonID(String id) {
       iD = id;
    }

    public String GetPersonID() {
       return iD;
    }

    public void SetPersonFirstName(String firstName) {
         this.firstName = firstName;
    }

    public String GetPersonFirstName() {
        return firstName;
    }

    public void SetPersonLastName(String lastName) {
       this.lastName = lastName;
    }

    public String GetPersonLastName() {
        return lastName;
    }

    public void SetPersonGender(String gender) {
       this.gender = gender;
    }

    public String GetPersonGender() {
        return gender;
    }

    public void SetPersonDateOfBirth(String dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String GetPersonDateOfBirth() {
        return dateOfBirth;
    }

    @Override
    public String toString()
    {
        return iD +"|"+ firstName +"|"+ lastName +"|"+ gender +"|"+ dateOfBirth;
    }
}
